import { createApp } from 'vue'

import App from './App.vue'
import router from './router'

//引入全局的less文件
import "./asstes/global.less"
import './asstes/el-reset.less'
//引入pinia
import {createPinia} from 'pinia'
//引入elementui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//路由钩子
import './utils/routerHook'

import 'nprogress/nprogress.css'

//引入Pinia持久化存储的创建
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
let pinia = createPinia()
//使用持久化存储
pinia.use(piniaPluginPersistedstate)


let app = createApp(App)

app.use(router) 

app.use(pinia)

app.use(ElementPlus)

app.mount('#app')


